package com.example.design.dahua.strategy.new3strategy;

/**
 * @author ebnew
 * 由于实例化不同的策略，所以最终在调用context.contextInterface()时所获取的结果不尽相同
 */
public class StrategyTest {
    public static void main(String[] args) {
        Context context;
        context=new Context(new ConcreteStrategyA());
        context.contextInterface();

        context=new Context(new ConcreteStrategyB());
        context.contextInterface();

        context=new Context(new ConcreteStrategyC());
        context.contextInterface();

    }
}
